# coding=utf-8
"""
Author: Mr.夏末
@Function: jsonpath
"""
import json

import jsonpath
import requests

res = requests.get("http://api.k780.com?app=weather.today&weaid=1&appkey=10003&sign=b59bc3ef6191eb9f747dd4e83c99f2a4&format=json")

print(res.text)
json_res = json.loads(res.text)
print(json.dumps(json_res))

res = jsonpath.jsonpath(json_res,'$.result.weather')
print(res)
